<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
	.KEYW {color: #933;}
	.COMM {color: #bbb; font-style: italic;}
	.NUMB {color: #393;}
	.STRN {color: #393;}
	.REGX {color: #339;}
	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
	</style></head><body><pre><span class='line'>  1</span> <span class="COMM">/**
<span class='line'>  2</span>  * Work with distributed transactions.
<span class='line'>  3</span>  *
<span class='line'>  4</span>  * Distributed transactions provide so-called "2-phase commit".    The
<span class='line'>  5</span>  *   AMQP distributed transaction model supports the X-Open XA
<span class='line'>  6</span>  *   architecture and other distributed transaction implementations.
<span class='line'>  7</span>  *   The Dtx class assumes that the server has a private communications
<span class='line'>  8</span>  *   channel (not AMQP) to a distributed transaction coordinator.
<span class='line'>  9</span>  *
<span class='line'> 10</span>  * @name Dtx
<span class='line'> 11</span>  * @exports Dtx as api.Dtx
<span class='line'> 12</span>  * @class
<span class='line'> 13</span>  */</span><span class="WHIT">
<span class='line'> 14</span> 
<span class='line'> 15</span> 
<span class='line'> 16</span> </span><span class="COMM">/**
<span class='line'> 17</span>  * Confirm transaction mode.
<span class='line'> 18</span>  *
<span class='line'> 19</span>  * This method confirms to the client that the channel was successfully
<span class='line'> 20</span>  *     set to use distributed transactions.
<span class='line'> 21</span>  *
<span class='line'> 22</span>  * @name Dtx#selectOk
<span class='line'> 23</span>  * @event
<span class='line'> 24</span>  * 
<span class='line'> 25</span>  */</span><span class="WHIT">
<span class='line'> 26</span> 
<span class='line'> 27</span> </span><span class="COMM">/**
<span class='line'> 28</span>  * Confirm the start of a new distributed transaction.
<span class='line'> 29</span>  *
<span class='line'> 30</span>  * This method confirms to the client that the transaction started.
<span class='line'> 31</span>  *     Note that if a start fails, the server raises a channel exception.
<span class='line'> 32</span>  *
<span class='line'> 33</span>  * @name Dtx#startOk
<span class='line'> 34</span>  * @event
<span class='line'> 35</span>  * 
<span class='line'> 36</span>  */</span><span class="WHIT">
<span class='line'> 37</span> 
<span class='line'> 38</span> 
<span class='line'> 39</span> 
<span class='line'> 40</span> </span><span class="COMM">/**
<span class='line'> 41</span>  * Select standard transaction mode.
<span class='line'> 42</span>  *
<span class='line'> 43</span>  * This method sets the channel to use distributed transactions.  The
<span class='line'> 44</span>  *     client must use this method at least once on a channel before
<span class='line'> 45</span>  *     using the Start method.
<span class='line'> 46</span>  *
<span class='line'> 47</span>  * @name Dtx#select
<span class='line'> 48</span>  * @function
<span class='line'> 49</span>  * 
<span class='line'> 50</span>  */</span><span class="WHIT">
<span class='line'> 51</span> 
<span class='line'> 52</span> </span><span class="COMM">/**
<span class='line'> 53</span>  * Start a new distributed transaction.
<span class='line'> 54</span>  *
<span class='line'> 55</span>  * This method starts a new distributed transaction.  This must be
<span class='line'> 56</span>  *     the first method on a new channel that uses the distributed
<span class='line'> 57</span>  *     transaction mode, before any methods that publish or consume
<span class='line'> 58</span>  *     messages.
<span class='line'> 59</span>  *
<span class='line'> 60</span>  * @name Dtx#start
<span class='line'> 61</span>  * @function
<span class='line'> 62</span>  * @param {String} dtxIdentifier The distributed transaction key. This identifies the transaction
<span class='line'> 63</span>  *       so that the AMQP server can coordinate with the distributed
<span class='line'> 64</span>  *       transaction coordinator.
<span class='line'> 65</span>  */</span><span class="WHIT">
<span class='line'> 66</span> 
<span class='line'> 67</span> </span></pre></body></html>